﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ElingOA6_Admin_DSJCJ.BLL
{
    /// <summary>
    /// 用户数据字典BLL
    /// </summary>
    public class UsrDataDictionary
    {
        /// <summary>
        /// 用户数据字典DAL
        /// <creator>zhongyl</creator>
        /// <date>2013-07-12</date>
        /// </summary>
        private readonly DAL.UsrDataDictionary dal = new DAL.UsrDataDictionary();
        /// <summary>
        /// 得到一个实体类
        /// <creator>zhongyl</creator>
        /// <date>2013-07-12</date>
        /// </summary>
        /// <param name="fTableName">表名</param>
        /// <param name="fFieldName">字段名</param>
        /// <param name="fEntityNo">组织机构编号</param>
        /// <returns>返回数据字典信息</returns>
        public Model.UsrDataDictionary GetModel(string fTableName, string fFieldName, string fEntityNo)
        {

            return dal.GetModel(fTableName, fFieldName, fEntityNo);
        }

        /// <summary>
        /// 增加一条数据
        /// <creator>zhongyl</creator>
        /// <date>2013-07-12</date>
        /// </summary>
        /// <param name="model">数据字典信息</param>
        /// <returns>是否增加成功</returns>
        public bool Add(Model.UsrDataDictionary model)
        {
            return dal.Add(model);
        }

        /// <summary>
        /// 更新一条数据
        /// <creator>zhongyl</creator>
        /// <date>2013-07-12</date>
        /// </summary>
        /// <param name="model">数据字典信息</param>
        public void UpdateIsShowGrid(Model.UsrDataDictionary model)
        {
            dal.UpdateIsShowGrid(model);
        }
    }
}
